//
//  KLBaseViewController.m
//  KLCurrency
//
//  Created by apple on 2017/12/2.
//  Copyright © 2017年 bonc. All rights reserved.
//

#import "KLBaseViewController.h"

@interface KLBaseViewController ()
@property (nonatomic, strong) UIView *cover;//蒙版
@end

@implementation KLBaseViewController

- (void)addCover{
    //增加蒙版 -- add by suixinyuan
    UIView *cover = [[UIView alloc] initWithFrame:self.view.bounds];
    cover.backgroundColor = [UIColor colorWithRed:222/255.0 green:246/255.0 blue:254/255.0 alpha:0.3];
    [self.view addSubview:cover];
    [self.view bringSubviewToFront:cover];
//    [[UIApplication sharedApplication].windows.lastObject addSubview:cover];
    self.cover = cover;
}

- (void)removeCover{
    [self.cover removeFromSuperview];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
